package com.js.auth.server.module.client.mapper;

import com.js.auth.server.module.client.entity.AuthClient;
import com.js.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author ygl
 * @create 2018-10-31
 * @DESCRIPTION
 **/
public interface AuthClientMapper extends BaseMapper<AuthClient> {

    @Select("SELECT client.* FROM auth_client client INNER JOIN auth_client_service gcs ON gcs.service_id = client.id WHERE gcs.client_id = #{clientId}")
    List<AuthClient> selectAuthorityServiceInfo(String id);
}
